package com.aspose.cells;

class zjj extends zbz {
   zjj(Chart var1) {
      this.c(4098);
      this.b(16);
      this.c = new byte[16];
      if (var1.getWorksheet().getType() == 2) {
         this.a(var1, var1.getChartObject().getLeftToCorner(), 0);
         this.a(var1, var1.getChartObject().getTopToCorner(), 4);
      }

      this.a(var1, var1.getChartObject().getWidth(), 8);
      this.a(var1, var1.getChartObject().getHeight(), 12);
   }

   void a(Chart var1, int var2, int var3) {
      double var4 = (double)((float)var2 * 72.0F / (float)var1.j().L());
      System.arraycopy(com.aspose.cells.b.a.zc.a((int)var4), 0, this.c, var3 + 2, 2);
      var4 -= (double)((int)var4);
      System.arraycopy(com.aspose.cells.b.a.zc.a((int)(var4 * 65535.0D + 0.5D)), 0, this.c, var3, 2);
   }
}
